package com.project.genesis.entity.oss;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.project.genesis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 文件信息表
 * </p>
 *
 * @author qtx
 * @since 2022-09-26
 */
@Getter
@Setter
@TableName("file_info")
@ApiModel(value = "FileInfo对象", description = "文件信息表")
public class FileInfo extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("other_id")
    private String otherId;

    @TableField("uuid")
    private String uuid;

    @ApiModelProperty("文件名")
    @TableField("name")
    private String name;

    @ApiModelProperty("文件名")
    @TableField("new_name")
    private String newName;

    @ApiModelProperty("文件路径")
    @TableField("path")
    private String path;
}
